/**
 * kl yy-ds @2021
 */
package com.cxps.server.alipay;

import com.cxps.server.domain.order.PayOrderEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 支付宝支付逻辑层
 *
 * @author YouCai.Liu
 * @since 2021/11/18
 * ...
 */
@Service
public class AlipayService {

    @Autowired
    private AlipayMapper alipayMapper;

    /**
     * 查询订单金额
     *
     * @param orderId
     * @return
     */
    public String getOrderPrice(String orderId) {
        return alipayMapper.getOrderPrice(orderId);
    }

    /**
     * 根据支付订单号查询订单信息
     *
     * @param orderNum
     * @return
     */
    public List<PayOrderEntity> getPayOrderInfoByOrderNum(String orderNum) {
        return alipayMapper.getPayOrderInfoByOrderNum(orderNum);
    }
}
